const moment = require('moment')
const chalk = require('chalk') 
 
function formatTime(time) {
  return `[${moment(time).format('YYYY-MM-DD HH:mm:ss')}]`
}

function logInfo() {
  console.log(chalk.green(formatTime(Date.now())), ...arguments)
}
  

module.exports = { 
  formatTime,
  logInfo, 
}
